
<?php include('left.php');?>
 <div id="main-content">
   <!-- Main Content Section with everything -->
   <noscript>
   <!-- Show a notification if the user has disabled javascript -->
   <div class="notification error png_bg">
     <div> Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
       Download From <a href="http://www.exet.tk">exet.tk</a></div>
   </div>
   </noscript>
   <!-- Page Head -->
   <h2>用户查询</h2>
   <br/>

     <div>
         <form id="user_search" action="/administrator/user/search" method="get">
        <b>注册开始时间:</b><input class="text-input" type="text" name="reg_start_time" onclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" value="<?php if(isset($input['reg_start_time'])) echo $input['reg_start_time'];?>">
         &nbsp;&nbsp;
        <b>注册结束时间:</b><input class="text-input" type="text" name="red_end_time" onclick="WdatePicker({startDate:'%y-%M-01 23:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" value="<?php if(isset($input['red_end_time'])) echo $input['red_end_time'];?>">
         <br/><br/>
             <!--b>登录开始时间:</b><input class="text-input" type="text" name="login_start_time" onclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})">
              &nbsp;&nbsp;
             <b>登录结束时间:</b><input class="text-input" type="text" name="login_end_time" onclick="WdatePicker({startDate:'%y-%M-01 23:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})">
              <br/><br/-->
        <b>通&nbsp;&nbsp;行&nbsp;&nbsp;证:</b><input class="text-input" type="text" name="passport" value="<?php if(isset($input['passport'])) echo $input['passport'];?>">
             <br/><br/>
            <b>昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称:</b><input class="text-input" type="text" name="nickname" value="<?php if(isset($input['nickname'])) echo $input['nickname'];?>">

             &nbsp;&nbsp;&nbsp;&nbsp;
         <input type="submit" value="搜索"/> &nbsp;
         <input type="button" onclick="_export()" value="导出"/>
         </form>
    </div>
     <br/>
     <div class="clear"></div>
   <!-- End .clear -->
   <div class="content-box">
     <!-- Start Content Box -->
     <div class="content-box-header">
       <h3>用户列表 共找到<?php if(isset($totalNum)) echo $totalNum;?>个用户</h3>
       <ul class="content-box-tabs">
           <!--<li><a href="#tab1" class="default-tab">Table</a></li>-->
         <!-- href must be unique and match the id of target div -->
           <!--<li><a href="#tab2">Forms</a></li>-->
       </ul>
       <div class="clear"></div>
     </div>
     <!-- End .content-box-header -->
     <div class="content-box-content">
       <div class="tab-content default-tab" id="tab1">
         <!-- This is the target div. id must match the href of this div's tab -->
           <!--
         <div class="notification attention png_bg"> <a href="#" class="close">
             <img src="/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
           <div> This is a Content Box. You can put whatever you want in it. By the way, you can close this notification with the top-right cross. </div>
         </div>-->
         <table>
           <thead>
             <tr>
               <th>用户ID</th>
               <th>通行证</th>
               <th>昵称</th>
               <th>用户状态</th>
               <th>是否激活</th>
               <th>注册日期</th>
               <th>操作</th>
             </tr>
           </thead>
           <tfoot>
             <tr>
               <td colspan="6">
                   <!--
                 <div class="bulk-actions align-left">
                   <select name="dropdown">
                     <option value="option1">Choose an action...</option>
                     <option value="option2">Edit</option>
                     <option value="option3">Delete</option>
                   </select>
                   <a class="button" href="#">Apply to selected</a> </div>
                    -->
                 <div class="pagination"><?php if(isset($page)) echo $page;?></div>
                 <!-- End .pagination -->
                 <div class="clear"></div>
               </td>
             </tr>
           </tfoot>
           <tbody>
            <?php if (isset($users) && $users):?>
               <?php foreach ($users as $v):?>
               <tr>
                 <td><?=$v['user_id']?></td>
                 <td><?=$v['passport']?></td>
                 <td><?=$v['nickname']?></td>
                 <td><?php if($v['user_status']):?>正常<?php else:?>删除<?php endif;?></td>
                 <td><?php if($v['is_activation']):?>已激活<?php else:?>未激活<?php endif;?></td>
                 <td><?=$v['create_time']?></td>
                 <td>
                   <a href="/administrator/user/edit/<?=$v['user_id']?>" title="Edit Meta"><img src="/images/icons/hammer_screwdriver.png" alt="Edit Meta" /></a>
                 </td>
               </tr>
               <?php endforeach;?>
            <?php endif;?>
           </tbody>
         </table>
       </div>
       <!-- End #tab1 -->

       <!-- End #tab2 -->
     </div>
     <!-- End .content-box-content -->
   </div>
   <!-- End .content-box -->
   <!-- End .content-box -->
   <div class="clear"></div>
   <!-- Start Notifications -->

   <!-- End Notifications -->
   <?php require(dirname(__FILE__) . '/footer.php'); ?>
   <!-- End #footer -->
 </div>
 <!-- End #main-content -->
</div>
</body>
<!-- Download From www.exet.tk-->
</html>
<script>
function _export()
{
    $('#user_search').attr('action','/administrator/user/export').submit().attr('action','/administrator/user/search');
}
</script>
